package com.xxxx.spring.test;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Bean3 {
    public Bean3(){
        log.info("构造 Bean3 ");
    }

    @Autowired
    private Bean1 bean1;

    @Autowired
    private Inter bean2;

    public Inter getInter(){
        return bean2;
    }
}
